package cn.big.dubbo.demo.service.impl;

import cn.big.dubbo.demo.service.IDemoService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.web.ServerProperties;
import org.springframework.stereotype.Service;

/**
 * @author Big
 */
@Service("demoServiceImpl")
public class DemoServiceImpl implements IDemoService {

	private Logger logger = LoggerFactory.getLogger(DemoServiceImpl.class);

	@Autowired
	private ServerProperties serverProperties;

	@Override
	public void test() {
		logger.info("测试成功！当前IP:PORT：{}:{}", serverProperties.getAddress(), serverProperties.getPort());
	}
}
